Skip to main content

AWSS3GetPresignedURL

Type

function

Summary

Get a pre-signed url that is valid for a perod of time

Syntax

AWSS3GetPresignedURL(<pBucket>,<pObject>,<pExpires>)

Description

Use a pre-signed url to provide access to objects to applications that are unable to sign requests themselves.

Parameters

NameTypeDescription

pBucket

The name of a bucket

pObject

The name (key) of the object

pExpires

The number of seconds between 1 and 604800 the signature should remain valid for. If not specified the default is 86400 (1 day).

Examples

-- allow 2 hours to play video
set the filename of player 1 to AWSS3GetPresignedURL("mybucket", "myvideo.mpg", 7200)